# 编译器
CC = gcc

# 源文件
SRC = testgmp.c

# 可执行文件
TARGET = tg

# 编译和链接选项
CFLAGS = -I/usr/local/include
LDFLAGS = -L/usr/local/lib -lgmp

# 默认目标
all: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
pi : pi.c
	$(CC) $(CFLAGS) -o pi pi.c $(LDFLAGS)
pi1000 : pi1000.c
	$(CC) $(CFLAGS) -o pi1000 pi1000.c  $(LDFLAGS)
clean:
	rm -f $(TARGET) pi pi1000

.PHONY: all clean
